

#include "wxsAuiToolBarLabel.h"

#include "wxsAuiToolBar.h"
#include <wxwidgets/wxsflags.h>

#include <wx/aui/auibar.h>

using namespace wxsFlags;

namespace
{
    #include "../images/wxsAuiToolBarLabel16.xpm"
    #include "../images/wxsAuiToolBarLabel32.xpm"

    wxsRegisterItem<wxsAuiToolBarLabel> Reg(
        _T("wxAuiToolBarLabel"),           
        wxsTWidget,                        
        _T("wxWindows"),                   
        _T("Benjamin I. Williams"),        
        _T(""),                            
        _T(""),                            
        _T("Aui"),                         
        10,                                
        _T("AuiToolBarLabel"),             
        wxsCPP,                            
        2, 8,                              
        wxBitmap(wxsAuiToolBarLabel32_xpm),
        wxBitmap(wxsAuiToolBarLabel16_xpm),
        false);
}

wxsAuiToolBarLabel::wxsAuiToolBarLabel(wxsItemResData* Data)
    : wxsAuiToolBarItemBase(Data,&Reg.Info,flId,0,0),
    m_IsDefault(true),
    m_Width(0) {}

void wxsAuiToolBarLabel::OnEnumItemProperties(long Flags) {
    WXS_BOOL(wxsAuiToolBarLabel,m_IsDefault,_("Default width"),_T("isdefault"),true)
    WXS_LONG(wxsAuiToolBarLabel,m_Width,_("Width"),_T("width"),0)
}
